export default { // 操作数组
  setProducts: (state) => {
    let saleProduct = state.products.map((product) => { // 遍历数组
      return { // 操作数组，改变数组
        name: '##' + product.name + '@@',
        price: product.price / 2
      }
    })
    return saleProduct
  }
}
